package com.gao.api.gate.quick.core.lifecycle;


public enum LifecycleState {
    NEW("new"), // 就绪
    INITIATING("initiating"), // 初始化
    STARTING_PREP("start_pre"),//开始之前
    STARTED( "start_post"),//开始之后
    STOPPING_PREP( "stop_pre"),//停止之前
    STOPPED("stop_post"),//停止之后
    FAILED("failed");//失败

    private final String lifecycleEvent;

    private LifecycleState(String lifecycleEvent) {
        this.lifecycleEvent = lifecycleEvent;
    }

    public String getLifecycleEvent() {
        return lifecycleEvent;
    }
}
